package com.spy.dish.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

@Data
@ApiModel(description = "菜品列表查询参数DTO")
public class DishQueryDTO {
    // 菜品名称（用于模糊查询）
    @ApiModelProperty(value = "菜品名称（模糊查询）", example = "番茄")
    private String dishName;

    @ApiModelProperty(value = "菜品分类id", example = "1")
    private Long dishCategoryId;

    @ApiModelProperty(value = "辣度（精准匹配，可查询'微辣'、'特辣'等）", example = "微辣")
    private String spiceLevel;

    @ApiModelProperty(value = "是否启用（0=禁用，1=启用）", example = "1")
    private Integer isEnabled;

    @ApiModelProperty(value = "页码（默认1）", example = "2")
    @Range(min = 1, message = "页码不能小于1")
    private Integer pageNum = 1;

    @ApiModelProperty(value = "每页条数（默认10，最大50）", example = "15")
    @Range(min = 1, max = 50, message = "每页条数必须在1-50之间")
    private Integer pageSize = 10;
}